// src/views/users/index.vue
<template>
  <div class="page-users">
    <h1>Users Page</h1>
    <RichEditor :defaultVal="htmlContent" ref="editorRef" />
    <button @click="getContent">获取内容</button>
  </div>
</template>

<script setup lang="ts">
// Page logic
import { ref } from "vue";
import RichEditor from "@/components/RichEditor.vue";

const htmlContent = ref("12345678");
const editorRef = ref(null);
const getContent = () => {
  console.log("当前内容:", editorRef.value.content);
};
</script>

<style scoped lang="scss">
.page-users {
  padding: 20px;
}
</style>
